import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/computed",
  },
  {
    path: "/computed",
    name: "computed",
    component: () => import("../views/Computed.vue"),
  },
  {
    path: "/life",
    name: "life",
    component: () => import("../views/Lifecircle.vue"),
  },
  {
    path: "/search",
    name: "search",
    component: () => import("../views/Search.vue"),
  },
  {
    path: "/filter",
    name: "filter",
    component: () => import("../views/Filter.vue"),
  },
  {
    path: "/watch",
    name: "watch",
    component: () => import("../views/Watch.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
